<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<html>
<head>
<meta charset="utf-8">
<title> HYD - 企业管理系统</title>

<link rel="stylesheet" type="text/css" href="<?php echo BASEURL; ?>resources/javascript/extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="<?php echo BASEURL; ?>resources/css/icon.css" />
<script src="<?php echo BASEURL;?>resources/javascript/extjs/ext-all.js"></script> 
<script src="<?php echo BASEURL;?>resources/javascript/extjs/locale/ext-lang-zh_CN.js" type="text/javascript"></script>
<script type="text/javascript">
    Ext.namespace("Hydcrm");
    Hydcrm.CONF = {
      //TEMPLATE: 'default',
      CONN_URL: '<?php echo  site_url(); ?>',
      //LOAD_URL: '<?php //echo  site_url('index/load_module_view'); ?>',
      //PDF_URL: '<?php //echo  site_url('pdf'); ?>',
      //GRID_PAGE_SIZE : <?php  echo  MAX_DISPLAY_SEARCH_RESULTS; ?>,
      //GRID_STEPS : <?php echo  EXT_GRID_STEPS; ?>,
      //JSON_READER_ROOT: '<?php echo  EXT_JSON_READER_ROOT; ?>',
      //JSON_READER_TOTAL_PROPERTY: '<?php echo  EXT_JSON_READER_TOTAL; ?>'
      BASE_URL: '<?php echo BASEURL; ?>',
      
      GRID_PAGE_SIZE : 10,
      JSON_READER_ROOT: 'records',
      JSON_READER_TOTAL_PROPERTY: 'total'
    };  
    <?php require_once("admin_tree.php");?>
    <?php require_once("user/main.php");?>
    <?php require_once("team/main.php");?>
    <?php require_once("department/main.php");?>
    <?php require_once("position/main.php");?>
        
    Ext.require(['*']);
    Ext.onReady(function() {

        Ext.QuickTips.init();
        Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
        var viewport = Ext.create('Ext.Viewport', {
            id: 'border-example',
            layout: 'border',
            items: [

            {
                region: 'north',
                contentEl: 'north',
                html:'<h1>HYD - 企业管理平台</h1>',
                border  : true,
                width   : 600,
                height  : 50
            }, {
                // lazily created panel (xtype:'panel' is default)
                region: 'south',
                contentEl: 'south',
                split: true,
                height: 80,
                minSize: 100,
                maxSize: 200,
                collapsible: true,
                collapsed: true,
                title: '姓名：<?php echo  $name; ?> &nbsp;&nbsp;  工号：<?php echo  $worknum; ?>',
                margins: '0 0 0 0'
            },
            
            new Hydcrm.AdminTree(),

            Ext.create('Ext.tab.Panel', {
                region: 'center', 
                deferredRender: false,
                id: 'admin_center_panel',
                //height: '100%',
                activeTab: 0,     // first tab initially active
                items: [
                    new Hydcrm.user.UserGrid(), 
                ]
            })]
        });
    });
    </script>
</head>
<body>
    <!-- use class="x-hide-display" to prevent a brief flicker of the content -->
    <div id="north" class="x-hide-display">
    </div>
    <div id="props-panel" class="x-hide-display" style="width:200px;height:200px;overflow:hidden;">
    </div>
    <div id="south" class="x-hide-display">
        <p style="margin-top: 6px;">姓名：<?php echo  $name; ?> &nbsp;&nbsp;工号：<?php echo  $worknum; ?>&nbsp;&nbsp;&nbsp;&nbsp; 用户名：<?php echo  $username; ?> &nbsp;&nbsp;&nbsp;&nbsp; 岗位：系统管理员 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br >官方网站：<a href="http://www.only99.cn" target="_blank">www.only99.cn</a> &nbsp;&nbsp;<a href="http://www.agehao.com" target="_blank"> 胡一栋版权所有</a> © copyright 2015</p>
    </div>
</body>
</html>